﻿using System.ComponentModel.DataAnnotations;

namespace My.Admin.Model.System
{
    public class MemberLogin
    {
        /// <summary>
        /// 登录手机号
        /// </summary>
        [Required(ErrorMessage = "请输入手机号码")]
        [RegularExpression(@"^1[3|4|5|7|8][0-9]\d{8}$", ErrorMessage = "手机号格式错误")]
        public string Phone { get; set; }

        /// <summary>
        /// 验证码key
        /// </summary>
        [Required(ErrorMessage = "验证码无效")]
        public string CodeKey { get; set; }

        /// <summary>
        /// 验证码值
        /// </summary>
        [Required(ErrorMessage = "请输入短信验证码")]
        public string CodeValue { get; set; }
    }
}
